package com.qf.ssm.service;

import com.qf.ssm.entity.User;
import com.qf.ssm.vo.AddUserVo;
import com.qf.ssm.vo.SearchUserVo;
import com.qf.ssm.vo.UserVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 * @author manchi520
 * @date 2022/7/5
 * @apiNote
 */
public interface UserService {
    public User login(String username,String password);

    public User register(UserVo userVo);

    public User nameRepeat(UserVo userVo);

    public List<User> findAll(Integer currentPage,Integer pageSize);

    public List<User> findByName(Integer currentPage, Integer pageSize, SearchUserVo searchUserVo);

    public int deleteById(int[] ids);

    public int addUser(AddUserVo addUserVo);

    public int updateUser(User user);

    public String exportAll() throws IOException;

    Integer uploadUser(MultipartFile file) throws IOException;

    //public String findPicPath(Integer id);
}
